+Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
+ check to see if the shortcuts exists. We don't want to put
+ invalid dirs in the shortcuts pane.
+
Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
+Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
+ check to see if the shortcuts exists. We don't want to put
+ invalid dirs in the shortcuts pane.
+
Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
+Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
+ check to see if the shortcuts exists. We don't want to put
+ invalid dirs in the shortcuts pane.
+
Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
+Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
+ check to see if the shortcuts exists. We don't want to put
+ invalid dirs in the shortcuts pane.
+
Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
+Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
+ check to see if the shortcuts exists. We don't want to put
+ invalid dirs in the shortcuts pane.
+
Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
}
else
{
+ /* Always check to make sure that the directory exists. */
+ GtkFileInfo *info = get_file_info (impl->file_system, path, FALSE, error);
+ if (info == NULL)
+ return FALSE;
+
if (label)
label_copy = g_strdup (label);
else
- {
- GtkFileInfo *info = get_file_info (impl->file_system, path, TRUE, error);
- if (!info)
- return FALSE;
- label_copy = g_strdup (gtk_file_info_get_display_name (info));
- gtk_file_info_free (info);
- }
+ label_copy = g_strdup (gtk_file_info_get_display_name (info));
+
+ gtk_file_info_free (info);
data = gtk_file_path_copy (path);
pixbuf = gtk_file_system_render_icon (impl->file_system, path, GTK_WIDGET (impl),